﻿@{ 
    ViewBag.Title = "修改密码";
}
@model ChangePasswordViewModel
<form method="post">
    @if (ViewContext.ModelState.ErrorCount > 0)
    {
        <div asp-validation-summary="All" class="alert alert-danger"></div>
    }
    else if (TempData["Success"] != null)
    {
        <div class="alert alert-success">
            <h4><i class="fa fa-check-circle"></i> 密码修改成功</h4>
        </div>
    }
    <div class="form-group row">
        <label asp-for="Password" class="col-2"></label>
        <input asp-for="Password" class="form-control col-4" />
        <span asp-validation-for="Password" class="text-danger col"></span>
    </div>
    <div class="form-group row">
        <label asp-for="NewPassword" class="col-2"></label>
        <input asp-for="NewPassword" class="form-control col-4" />
        <span asp-validation-for="NewPassword" class="text-danger col"></span>
    </div>
    <div class="form-group row">
        <label asp-for="ConfirmPassword" class="col-2"></label>
        <input asp-for="ConfirmPassword" class="form-control col-4" />
        <span asp-validation-for="ConfirmPassword" class="text-danger col"></span>
    </div>
    <div class="form-group">
        <button type="submit" class="btn btn-primary">提 交</button>
    </div>
</form>
@section scripts{ 
    @Html.Partial("/Pages/Shared/_ValidationScripts.cshtml")
}